<?php
session_start();
	if($_REQUEST["kasutajanimi"]=="admin" AND $_REQUEST["parool"]=="admin"){
		$_SESSION["administraator"]=$_REQUEST["kasutajanimi"];
		header ("Location: admin.php");
	}
	if($_REQUEST["kasutajanimi"]=="d" AND $_REQUEST["parool"]=="d"){
		$_SESSION["dispetser"]=$_REQUEST["kasutajanimi"];
		header ("Location: dispets.php");
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>Taksi Paksi taksoteenused!</title>
	<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
	<?php
		require("menyy.php")
	?>
	<div id="page">
		<div id="box1">
			<p>Sisselogimiseks täida vorm:</p>
			<form action="login.php">
				K: <input type="text" name="kasutajanimi" /><br />
				P: <input type="password" name="parool" /><br />
				<input type="submit" value="Sisene" />
			</form>
		</div>
	</div>
	<?php
		require("jalg.php")
	?>
</body>
</html>